package com.sxjh.entity.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class GoodsLocationAddParam {

  @NotBlank(message = "地点名称不能为空")
  @ApiModelProperty(value = "地点名称")
  private String name;

  @NotNull(message = "地点类型不能为空")
  @Min(value = 0, message = "地点名称为0或1")
  @Max(value = 1, message = "地点名称为0或1")
  @ApiModelProperty(value = "类型 0|装货地,1|卸货地")
  private String type;

  @ApiModelProperty(value = "间隔时间/min")
  //@Min(value = 1, message = "间隔时间必须大于0")
  private Integer intervalTime;

  @ApiModelProperty(value = "备注")
  private String remark;

  /*@ApiModelProperty(value = "物料ID")
  private Integer materialId;*/

  @ApiModelProperty(value = "车间id")
  private Integer workshopId;

  @ApiModelProperty(value = "工厂id")
  private Integer factoryId;

  @ApiModelProperty(value = "是否需要拍照标记,1:否,-1:是")
  private Integer photoFlag = 1;

  @ApiModelProperty(value = "是否需要人工确认标记,1:否,-1:是")
  private Integer confirmFlag = 1;

  @ApiModelProperty(value = "是否启用标记,1:否,-1:是")
  private Integer activateFlag;

}
